<?php
/*
 * @Author: CHINAKAIYUAN<sunkaiyuan@namenode.cn>
 * @Date: 2022-02-03 00:33:05
 * @LastEditTime: 2022-08-25 21:33:51
 * @LastEditors: CHINAKAIYUAN
 * @Description: 
 */

namespace App\Models;

use App\Repositories\FinanceVoucherRepository;
use App\Traits\CompanyTrait;
use App\Traits\VoucherTrait;

class FinanceAcceptancePayDetails extends BaseModel
    {
    use CompanyTrait;
    use VoucherTrait;
    public $timestamps = true;
    public $table = "sys_finance_pay_acceptance_details";
    protected $guarded = [];

    public $voucherkey = "id";
    public function handletrade()
        {
        return $this->belongsTo(Trade::class);
        }
    public function main()
        {
        return $this->belongsTo(FinanceAcceptancePay::class);
        }
    public function acceptance_rec()
        {
        return $this->belongsTo(FinanceAcceptanceRec::class);
        }
    public function finance()
        {

        }
    public function nofinance($order)
        {
        $order->main->nofinance();
        }
    //  
    }
